package com.juyu.miliao.api.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.ErrorHandler;

@Component
public class RabbitExceptionHandler implements ErrorHandler {
	private final Logger rabbitListenerLogger = LoggerFactory.getLogger("rabbitListener");

	@Override
	public void handleError(Throwable t) {
		rabbitListenerLogger.error("rabbitmq 错误：", t);
	}

}
